﻿using System;
using System.Collections.Generic;

namespace HYRElectric.LightningCalculation
{
	public class LevelProfiles
	{
		public double Elevation
		{
			get
			{
				return this.m_Elevation;
			}
		}

		public List<Profile> Profiles
		{
			get
			{
				return this.m_Profiles;
			}
		}

		public LevelProfiles(LevelProfiles rhs)
		{
			this.m_Elevation = rhs.m_Elevation;
			this.m_Profiles = rhs.m_Profiles;
		}

		public LevelProfiles(double elevation)
		{
			this.m_Elevation = elevation;
		}

		public LevelProfiles(double elevation, List<Profile> profiles)
		{
			this.m_Elevation = elevation;
			this.m_Profiles = profiles;
		}

		public void AddProfile(Profile profile)
		{
			this.m_Profiles.Add(profile);
		}

		public double Perimeter()
		{
			double num = 0.0;
			foreach (Profile profile in this.m_Profiles)
			{
				num += profile.Perimeter();
			}
			return num;
		}

		public double Area()
		{
			double num = 0.0;
			foreach (Profile profile in this.m_Profiles)
			{
				num += profile.Area();
			}
			return num;
		}

		private double m_Elevation;

		private List<Profile> m_Profiles = new List<Profile>();
	}
}
